package com.shr.code_interview;

public class Solution_5 {
    public static String replaceSpace(StringBuffer str) {
    	return str.toString().replaceAll(" ", "%20");
    }
    public static void main(String[] args) {
		System.out.println(replaceSpace(new StringBuffer("We Are Happy")));
	}
}
